<extend name="Public/common"/>
<block name="othercss">

</block>
<block name="body">
<div class="mian" style="background-color: #f4f4f4">
    <div class="help">
        <div class="box">
            <div class="loc"><i class="icon iconloc"></i>您现在在这里：<a href="{:urlrotue('/')}">白宝库</a> > <a href="{:urlrotue('Help/index')}">帮助中心</a> > <span class="on">{$model.help_name}</span></div>
            <div class="clearfix help_list">
                <div class="right">
                    <h2 class="title">{$model.help_name}</h2>
                     <if condition="$model['type'] eq '单页'">
                    <div class="editor"><br>
                         {$model.detail|htmlspecialchars_decode}
                        
                    </div>
                    
                     <elseif condition="$model['type'] eq '资讯'" />
                    
                    <ul class="question">
                    <volist name="list" id="list_item">
              
                        
                        <li <eq name="key" value="0">class="on"</eq>>
                            <div class="t1 clearfix">
                                <div class="t1-1"></div>
                                <div class="t1-2"><i class="icon icon6"></i><div class="t1-3">{$list_item.title}</div></div>
                            </div>
                            <div class="t2 editor">  {$list_item.detail|htmlspecialchars_decode}</div>
                        </li>
                        </volist>
                        


                    </ul>
                    <div class="pagetion">
                          {$page}
                   </div>  
                    </if>
                </div>
                <div class="left">
                    <ul>
                        <foreach name="left_menu" item="left_menu_item">
                        <li>
                            <h3>{$left_menu_item.help_name}</h3>
                            <div class="help-nav">
                      <foreach name="left_menu_item.sub" item="left_menu_sub_item">          
                     <if condition="$left_menu_sub_item.type eq '链接'">
                   <a href="{$left_menu_sub_item.link}" target="_blank">{$left_menu_sub_item.help_name}</a>
                      <else />
                    <dd><a href="{:U('Help/index',array('id'=>$left_menu_sub_item['help_id']))}" <eq name="left_menu_sub_item['help_id']" value="$id"> class="on"</eq>>{$left_menu_sub_item.help_name}</a>
                     </if>
                                
                             </foreach>
                            </div>
                        </li>
                        </foreach>
      
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</block>
<block name="otherjs">
<script>
    $(function(){
        $('.question li .t1').click(function(){
            $(this).parents('li').toggleClass('on');
			$(this).parents('li').siblings().removeClass('on');
        })
    })
</script>
</block>
